
@import url(http://fonts.googleapis.com/css?family=Roboto:400,300,700,900);
.counter-group {display: inline-block;}

.counter-group:before,
.counter-group:after {
  content: " ";
  display: table;
}
.counter-group:after {
  clear: both;
}
.counter-block {
  float: left;
  margin-right: 20px;
}
.counter-block .counter {
  position: relative;
  width: 210px;
  height: 130px;
  overflow: hidden;
}
.counter-block .counter .number {
  padding: 2%;
  width: 48%;
  height: 100%;
  background-color: #fefefe;
  color: #333333;
  position: absolute;
  font-size: 100px;
  line-height: 130px;
  top: -10000px;
}
.counter-block .counter .number.tens {
  left: 0;
}
.counter-block .counter .number.units {
  left: 50%;
}
.counter-block .counter .number.hundreds {
  display: none;
}
.counter-block .counter .number.show {
  top: 0;
  z-index: 2;
}
.counter-block .counter .number.hidden-down {
  top: 100%;
}
.counter-block .counter .number.hidden-up {
  top: -100%;
  z-index: 100;
}
.counter-block .counter.with-hundreds {
  width: 300px;
}
.counter-block .counter.with-hundreds .number {
  width: 30.66%;
}
.counter-block .counter.with-hundreds .number.tens {
  left: 33.33%;
}
.counter-block .counter.with-hundreds .number.units {
  left: 66.66%;
}
.counter-block .counter.with-hundreds .number.hundreds {
  display: block;
  left: 0;
}
.counter-block .counter-caption {
  font-size: 150%;
  margin-top: 10px;
}
@media (max-width: 992px) {
  .counter-group {
    margin: 10px auto;
  }
  .counter-block {
    margin-right: 10px;
  }
  .counter-block .counter {
    width: 120px;
    height: 90px;
    overflow: hidden;
    font-weight: 700;
  }
  .counter-block .counter .number {
    font-size: 108px;
    line-height: 90px;
  }
  .counter-block .counter.with-hundreds {
    width: 180px;
  }
  .counter-block .counter-caption {
    font-size: 100%;
  }
}
@media (max-width: 768px) {
  .counter-group {
    margin: 0 auto;
  }
  .counter-block {
    margin-right: 8px;
  }
  .counter-block .counter {
    width: 96px;
    height: 80px;
  }
  .counter-block .counter .number {
    font-size: 86px;
    line-height: 72px;
  }
  .counter-block .counter.with-hundreds {
    width: 144px;
  }
  .counter-block .counter-caption {
    font-size: 85%;
  }
}
@media (max-width: 480px) {
  .counter-group {
    margin: 0 20px;
  }
  .counter-block .counter {
    width: 70px;
    height: 50px;
  }
  .counter-block .counter .number {
    font-size: 55px;
    line-height: 50px;
  }
  .counter-block .counter.with-hundreds {
    width: 92px;
  }
  .counter-block .counter-caption {
    font-size: 70%;
  }
}
